package fuza.android.thetrafficsigns;

import fuza.android.thetrafficsigns.help.AdapterGuide;
import android.app.Activity;
import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.GridView;

import android.view.View;
import android.widget.AdapterView.OnItemClickListener;

public class GridGuideSign extends Activity {

	GridView gridView;

	static final String[] MOBILE_OS = new String[] { "Satu", "Dua",
		"Tiga", "Empat", "Lima", "Enam", "Tujuh", "Delapan", "Sembilan" };

	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		gridView = (GridView) findViewById(R.id.gridView1);

		gridView.setAdapter(new AdapterGuide(this, MOBILE_OS));

		gridView.setOnItemClickListener(new OnItemClickListener() {
			public void onItemClick(AdapterView<?> parent, View v,
					int position, long id) {
//				Toast.makeText(
//						getApplicationContext(),
//						((TextView) v.findViewById(R.id.grid_item_label))
//								.getText(), Toast.LENGTH_SHORT).show();

			}
		});

	}

}